package com.hctforgreen.greenservice.model;

import org.json.JSONException;
import org.json.JSONObject;
/**
 * 支持机型
 * @author Tallen Zhai
 *
 */
public class SupportMidEntity extends BaseEntity{
	private static final long serialVersionUID = 5407347102675913131L;

	public String content = "";
	
	public String statusCode = "";
	public String msg = "";
	public final static String STATE_CODE = "statusCode";
	public final static String MSG = "msg";
	
	private final static String CONTENT = "content";
	public static SupportMidEntity parse(JSONObject jsonObject)throws JSONException{
		SupportMidEntity bean = new SupportMidEntity();
		if(jsonObject.has(STATE_CODE)){
			bean.statusCode = jsonObject.getString(STATE_CODE);
		}
		if(jsonObject.has(MSG)){
			bean.msg = jsonObject.getString(MSG);
		}
		
		if(jsonObject.has(CONTENT)){
			bean.content = jsonObject.getString(CONTENT);
		}
		
		return bean;
	}
}
